package com.whmnx.base.constants;

import com.whmnx.base.bean.OrderBean;
import com.whmnx.base.bean.ProductBean;
import com.whmnx.base.bean.TreeBean;

import java.util.ArrayList;
import java.util.List;

/**
 * author : huang
 * date   : 2020/7/21 0021 14:50
 * version: 1.0
 */
public class Constants {

  //  public static final String HOST = "http://192.168.0.18:8019/";

 // public static final String HOST = "http://192.168.0.25:8090/Api";

  //
  public static final String HOST = "http://w1.whmnx.com/Api";

    public static final String CODEBUILD = HOST + "hubs/chat";

    public static final String CHAT_INFO = "chatInfo";

    // sharePreference文件HOST
    public static final String PFNAME = "config";
    // sharePreference文件HOST
    public static final String MESSAGE = "Message";
    public static final String SENDID = "SendId";
    public static final String GROUPID = "GroupID";

    public static final String WECHAT_ID = "wx5f6e966340cbc203";

  //  public static final String HOSE = "hose";

    public static final String PHONE = "phone";

    //播放
    public static final String PLAY = "play";

   //是否登录
   public static final String WELCOME = "welcome";

   public static final String LOGINN = "login";

   public static final String LV = "lv";

   public static final String PAYWORD = "payWord";


    public static final String HEAD_IMG = "head_img";

    public static final String IMG = "img";

    public static final String NICKNAME = "nickName";
    public static final String USERID = "userId";
    public static final String COM = "com";
    public static final String TOKEN = "Token";
    public static final String CODE = "code";

    public static final String LOGIN2 = "login";

    public static final String DEP = "dep";
    public static final String BEAN = "Bean";
    public static final String AVERAGEPRICE = "AveragePrice";
    public static final String POUNDAGE = "Poundage";

    public static final String FORMPHOTO = "FormPhoto";

    public static List<TreeBean> TREEBEANS;

    public static List<String> list;

    public static String ORDER;

    public static OrderBean ORDERBEAN;

    public static String UID;
    public static int ISFOCUS;

    public static ProductBean PRODUCTBEAN;


    public static List<Boolean> alreadyLikeList = new ArrayList<>();
    public static List<Boolean> alreadyLikeList2 = new ArrayList<>();

    public static List<String> IMGLIST2;
    public static final String DEFAULT_MEDIA_PACK_FOLDER = "txrtmp";      // UGC编辑器输出目录

     public static final String GETCODE = HOST + "/app/getcode";
     //注册
     public static final String REGISTER = HOST + "/app/register";
     //登录
     public static final String LOGIN = HOST + "/app/login";
     //找回密码
     public static final String RETRIEVEPWD = HOST + "/app/retrievePwd";
     //商品管理
     public static final String PRODUCTMANAGER = HOST + "/appservice/appproduct/productmanager";
     //商品分类
     public static final String GETCATEGORYTREE = HOST + "/appservice/appcategory/getcategorytree";
     //商品新增或更新
     public static final String ADDORUPDATE = HOST + "/appservice/appproduct/addorupdate";
     //商品分类新增或更新
     public static final String ADDORUPDATE2 = HOST + "/appservice/appcategory/addorupdate";
     //更新商品状态
     public static final String UPDPRODUCTSTATUS = HOST + "/appservice/appproduct/updproductstatus";
     //商品详情
     public static final String GETPRODUCTDETAIL = HOST + "/appservice/appproduct/getproductdetail";
     //新增规则
     public static final String APP_ADDORUPDATE = HOST + "/appservice/apprule/pintuanguize";
     // 红包
     public static final String HONGBAOGUIZE = HOST + "/appservice/apprule/hongbaoguize";
     //
     public static final String SHOUHOUDIZHI = HOST + "/appservice/apprule/shouhoudizhi";

     public static final String KEFUDIANHUA = HOST + "/appservice/apprule/kefudianhua";
     //短视频橱窗有效期
     public static final String DUANSHIPINCHUCHUANGXIAOQI = HOST + "/appservice/apprule/duanshipinchuchuangxiaoqi";
     //地址新境
     public static final String ADDORUPDATE3 = HOST + "/appservice/appaddress/addorupdate";
     //地址查询
     public static final String ADDRESSLIST = HOST + "/appservice/apporder/addresslist";
     //删除地址
     public static final String DELETE2 = HOST + "/appservice/appaddress/delete";

     //商品分类删除
   public static final String DELETE = HOST + "/appservice/appcategory/delete";
  //生成订单信息
    public static final String GETORDERINFO = HOST + "/appservice/apporder/getorderinfo";
    //购物车- 新增
    public static final String ADDSHOPCART = HOST + "/appservice/apporder/addshopcart";
    //查询
    public static final String SELSHOPCART = HOST + "/appservice/apporder/selshopcart";
    //删除
    public static final String DELSHOPCART = HOST + "/appservice/apporder/delshopcart";
    //编辑
    public static final String EDITSHOPCART = HOST + "/appservice/apporder/editshopcart";
    //收藏
    public static final String DELSHOPCART2 = HOST + "/appservice/apporder/delshopcart";
    //结算
    public static final String SHOPCARTORDER = HOST + "/appservice/apporder/shopcartorder";
    //我的订单 查询
    public static final String SELORDER = HOST + "/appservice/apporder/selorder";
    //我的订单- 提交
    public static final String ADDORDER = HOST + "/appservice/apporder/addorder";
    //我的订单 详情
    public static final String ORDERDETAIL = HOST + "/appservice/apporder/orderdetail";
    //我的订单--- 拼团
    public static final String SPELLGROUP = HOST + "/appservice/apporder/spellgroup";
    //拼团列表
    public static final String PRODUCTGROUPLIST = HOST + "/appservice/appproduct/productgrouplist";
    //退货退款
    public static final String BACKORDER = HOST + "/appservice/apporder/backorder";
    //我的订单-填写物流
    public static final String LOGISTICS = HOST + "/appservice/apporder/logistics";
    //评价
    public static final String ADDCOMMENT = HOST + "/appservice/apporder/addcomment";
    //财务管理-查询
    public static final String SELMANAGER = HOST + "/appservice/apporder/selmanager";
    //销售总额
    public static final String SALESLIST = HOST + "/appservice/apporder/saleslist";
    //视频发评论
    public static final String ADDREMARK = HOST + "/appservice/appwork/addremark";
    //评论列表
    public static final String REMARKLIST = HOST + "/appservice/appwork/remarklist";
    //
    public static final String CHILDREMARKLIST = HOST + "/appservice/appwork/childremarklist";
    //我的订单-单个订单支付
    public static final String ORDERPAY = HOST + "/appservice/apporder/orderpay";

     //
     //交易大厅
     public static final String DEALLIST = HOST + "/appservice/appdeal/deallist";
     //个人记录
     public static final String DEALLISTTOUSER = HOST + "/appservice/appdeal/deallisttouser";
     //播豆 发布 出售/收购
     public static final String ADDDEALTOONE = HOST + "/appservice/appdeal/adddealtoone";
     //用户信息
     public static final String GETUSERINFO = HOST + "/appservice/appdeal/getuserinfo";
    //上传图片
    public static final String UPLOADHEADIMG = HOST + "/uploadfiles/ajaxupload";
    //更新头像
    public static final String UPDATEHEADIMAGE = HOST + "/appservice/appuserinfo/updateHeadImage";
    //更
    public static final String UPDATEUSERNICK = HOST + "/appservice/appuserinfo/updateUserNick";
    //生成腾讯云密钥
    public static final String TXY_SIGNATURE = HOST + "/app/txy_signature";
    //发布视频到自己的服务器
    public static final String ADDWORK = HOST + "/appservice/appwork/addwork";
    //我的作品
    public static final String MYWORKLIST = HOST + "/appservice/appwork/myworklist";
    //推荐视频
    public static final String RECOMMENDVIDEOLIST = HOST + "/appservice/appwork/recommendvideolist";
    //关注
    public static final String ADDFOLLOW = HOST + "/appservice/appfollowuser/AddFollow";
    //点赞
    public static final String GIVELIKE = HOST + "/appservice/appwork/givelike";
    //取消关注
    public static final String CANCELFOLLOW = HOST + "/appservice/appfollowuser/CancelFollow";
    //已关注
    public static final String FOCUSVIDEOLIST = HOST + "/appservice/appwork/focusvideolist";
    //个人信息
    public static final String PERSONALINFORMATION = HOST + "/appservice/appuserinfo/personalinformation";
    //支付宝回调
    public static final String ALIPAYNOTIFY = HOST + "/appservice/pay/AliPayNotify";
    //微信回调
    public static final String WECHATPAYNOTIFY = HOST + "/appservice/pay/wechatpaynotify";
    //我的订单一更新状态
    public static final String UPDORDERSTATUS = HOST + "/appservice/apporder/updorderstatus";

    //获取我的播豆
    public static final String GETBEANBAGLIST = HOST + "/appservice/appbeanbag/GetBeanBagList";
    //兑换播豆包
    public static final String CONVERTBEANBAG = HOST + "/appservice/appbeanbag/ConvertBeanBag";
    //播豆列表
    public static final String BEANBAGLIST = HOST + "/appservice/appbeanbag/beanbaglist";
    //短视频商品列表(主播)
    public static final String WORKPRODUCTLIST = HOST + "/appservice/appwork/workproductlist";
    //音乐列表
    public static final String MUSICLIST = HOST + "/appservice/appmusic/musiclist";
    //个人资产余额
    public static final String GETASSETBALANCE = HOST + "/appservice/appuserinfo/GetAssetBalance";
    //播豆互转
    public static final String BEANHUZHUAN = HOST + "/appservice/appuserinfo/beanhuzhuan";
    // 播豆划转
    public static final String BEANSTRANSFER = HOST + "/appservice/appuserinfo/beanstransfer";
    //交易余额
    public static final String MONEYFLOWINGLIST = HOST + "/appservice/appmoneydetail/moneyflowinglist";
    //提现申请
    public static final String ADDWITHDRAW = HOST + "/appservice/appuserinfo/addwithdraw";
    //短视频观看记录
    public static final String LOOKWORKRECORD = HOST + "/appservice/appwork/lookworkrecord";
    //删除视频
    public static final String DELETE3 = HOST + "/appservice/appwork/delete";
    //V1认证
    public static final String V1AUTHENTICATION = HOST + "/appservice/appuserinfo/V1Authentication";
    //修改密码
    public static final String UPDATEPWD = HOST + "/appservice/appuserinfo/updatepwd";
    //新增身份证
    public static final String ADDV2AUTHENTICATION = HOST + "/appservice/appuserinfo/addv2authentication";
    //
    public static final String PRODUCTCOMMENTLIST = HOST + "/appservice/appproduct/productcommentlist";
    //消息列表
    public static final String MESSAGELIST = HOST + "/appservice/appmessage/messagelist";
    //
    public static final String MESSAGEDETAIL = HOST + "/appservice/appmessage/messagedetail";
    //
    public static final String GETAGREEMENTINFO = HOST + "/appservice/appagreement/getagreementinfo";
    //播豆记录
    public static final String BEANBAGRECORD = HOST + "/appservice/appbeanbag/beanbagrecord";
    //省市区3级联动数据源
    public static final String GETCASCADERSOURCE = HOST + "/appservice/area/getcascadersource";
    //我的订单-商家回复
    public static final String MERCHANTREPLY = HOST + "/appservice/apporder/merchantreply";
    // 联系客服
    public static final String CUSTOMERSERVICE = HOST + "/appservice/appdataitem/customerservice";
    //二维码
    public static final String GETQRCODE = HOST + "/appservice/appuserinfo/getqrcode";
    //
    public static final String USERTOCHILD = HOST + "/appservice/appuserinfo/usertochild";
    //拼团详情
    public static final String SPELLGROUPDETAIL = HOST + "/appservice/apporder/spellgroupdetail";
    //
    public static final String GETITEMVALUE = HOST + "/appservice/appdataitem/getitemvalue";
    //团队威信群
    public static final String WECHATPIC = HOST + "/appservice/appwechatpic/wechatpic";
    //
    public static final String GETRULETOUSER = HOST + "/appservice/apprule/getruletouser";


    /**
     * 点播的信息
     */
    public static final int VOD_APPID = 1256468886;
    public static final String VOD_APPKEY = "1973fcc2b70445af8b51053d4f9022bb";

    public static final String PREFIX_MEDIA_URI = "content://";

    /**
     * 业务服务器交互路由
     * */
    public static final String SERVER_IP = "http://demo.vod2.myqcloud.com/shortvideo";
    public static final String ADDRESS_SIG = SERVER_IP + "/api/v1/misc/upload/signature";
    public static final String ADDRESS_VIDEO_LIST = SERVER_IP + "/api/v1/resource/videos";
    public static final String ADDRESS_VIDEO_INFO = SERVER_IP + "/api/v1/resource/videos/#";
    public static final String ADDRESS_VIDEO_REPORT = SERVER_IP + "/api/v1/resource/videos/"; // /api/v1/resource/videos/#file_id
    /**
     * 业务服务器返回结果码
     * */
    public static class RetCode {
        // 服务器返回码
        public static final int CODE_SUCCESS = 0;               // 接口请求成功
        public static final int CODE_PARAMS_ERR = 1001;         // 请求参数错误
        public static final int CODE_AUTH_ERR = 1002;           // 鉴权错误
        public static final int CODE_RES_ERR = 1003;            // 资源不存在
        public static final int CODE_REQ_TOO_FAST_ERR = 1004;   // 请求频率过快
        public static final int CODE_SERVER_ERR = 1000;         // 服务器错误
        // 客户端处理码
        public static final int CODE_REQUEST_ERR = 1;           // 请求错误
        public static final int CODE_PARSE_ERR = 2;             // 解析json错误

    }
}
